package com.zhanghe.chap02;

import com.zhanghe.annnation.NotThreadSafe;

/**  
 * LazyInitRace
 *
 * @author Clevo  
 * @date 2017/12/26 0:14
 */  
@NotThreadSafe
public class LazyInitRace {

	private Object instance = null;
	
	public Object getInstance(){
		if(instance == null){
			instance = new Object();
		}
		return instance;
	}
	
}
